package org.kust.bbs.admin.mapper;

import org.apache.ibatis.annotations.Param;
import org.kust.bbs.pojo.entity.Permission;
import org.kust.bbs.pojo.vo.PermissionVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p> 权限表 Mapper 接口</p>
 */
@Repository
public interface PermissionMapper {
    List<Permission> selectPermissionsByAdminId(@Param("adminId") Long id);

    void insertPermission(Permission permission);

    List<PermissionVO> selectPermissions();

    void updatePermission(Permission permission);

    void deletePermission(@Param("id") Long id);
}
